package com.byxy.computer.student.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.byxy.computer.student.entity.LessonMaterial;

/**
 * @author Daniel
 * @E-Mail iva0512@gmail.com
 * @Date 2016年9月25日
 */
@Service
public class LessonMaterialServiceImpl implements LessonMaterialService {

	@Autowired
	private LessonMaterialDao lessonMaterialDao;

	@Override
	public List<LessonMaterial> listAll() {

		// List<LessonMaterial> ls = lessonMaterialDao.findAll();
		// System.out.println("LessonMaterial=" + ls.size());
		return lessonMaterialDao.findAll();
	}

	@Override
	public LessonMaterial save(LessonMaterial lm) {
		return lessonMaterialDao.save(lm);
	}
}
